package com.es.gateway.sdk.app.non_mainland_cn;

import com.es.gateway.sdk.util.GsonUtil;
import lombok.Data;

@Data
public class NonMainlandCnInitResponse {
    /**
     * 请求ID
     */
    private String requestId;
    /**
     * 错误码
     */
    private String code;
    /**
     * 结果描述
     */
    private String msg;
    /**
     * 认证token
     */
    private String token;


    public String toJsonStr() {
        return GsonUtil.getAllJson().toJson(this);
    }

    public static NonMainlandCnInitResponse fromJsonStr(String jsonStr) {
        return GsonUtil.getAllJson().fromJson(jsonStr, NonMainlandCnInitResponse.class);
    }
}
